//
//  ListController.m
//  KMedicine
//
//  Created by song on 16/7/7.
//  Copyright © 2016年 caomu. All rights reserved.
//

#import "ListController.h"


@interface ListController ()
@property (nonatomic, strong) NSArray *detailArr;


@end

@implementation ListController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tableView.tableFooterView = [[UIView alloc] init];
    
    
}


#pragma mark - Table view data source

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    

    return self.listArr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"list"];
    if (!cell) {
        
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"list"];
    }
    
    cell.textLabel.text = self.listArr[indexPath.row];
    
    return cell;
}


#pragma mark
#pragma mark 
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    self.arrayBlock(indexPath.row);
    
    [self.navigationController popViewControllerAnimated:YES];
    
}




@end
